﻿using AbpVnext_Order.Model;
using AbpVnext_Order_Contracts.Dto;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpVnext_Order
{
    public class OrderProfile : Profile
    {
        public OrderProfile()
        {
            ////order
            CreateMap<Order, OrderDto>();
            CreateMap<OrderDto, Order>();
            CreateMap<OrderCreateDto, Order>();
            CreateMap<OrderUpdateDto, Order>();
            CreateMap<Order, OderPageResultDto>();

            CreateMap<Order, OrderCreateResultDto>();
            CreateMap<Order, OrderUpdateResultDto>();
        }
    }
}
